export default {
  // Global page headers: https://go.nuxtjs.dev/config-head
  // debug: true,
  loading: false,
  head: {
    title: "正福易找标_你贴身的政采数据专家",
    htmlAttrs: {
      lang: "zh-CN"
    },
    meta: [
      { charset: "utf-8" },
      // {
      //   name: "keywords",
      //   content: "易找标,正福易找标,政采易找标,政府采购,政采数据专家"
      // },
      // {
      //   name: "description",
      //   content:
      //     "海量商机一网打尽，捕获契合你的政采机遇！易找标，你贴身的政采数据专家"
      // },
      { name: "viewport", content: "width=device-width, initial-scale=1" },
      { hid: "keywords", name: "keywords", content: "易找标,正福易找标,政采易找标,政府采购,政采数据专家" },
      { hid: "description", name: "description", content: "海量商机一网打尽，捕获契合你的政采机遇！易找标，你贴身的政采数据专家" },
      // { 'http-equiv': "Content-Security-Policy", content: "upgrade-insecure-requests" }
    ],

    link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
  },
  ssr: true,
  // Global CSS: https://go.nuxtjs.dev/config-css
  css: ["element-ui/lib/theme-chalk/index.css", "@assets/css/public.less"],

  // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  plugins: [
    "@/plugins/element-ui",

    { src: "@/plugins/qrcodejs2", ssr: false },
    "@/plugins/main",
    { src: "@/plugins/cryptoJs", mode: "client" }
  ],

  // Auto import components: https://go.nuxtjs.dev/config-components
  components: true,

  // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  buildModules: [],

  // Modules: https://go.nuxtjs.dev/config-modules
  modules: ["@nuxtjs/style-resources", "@nuxtjs/axios"],
  axios: {
    proxy: true,
    // prefix: '/api/',
    credentials: true
    // See https://github.com/nuxt-community/axios-module#options
  },

  // Build Configuration: https://go.nuxtjs.dev/config-build
  build: {
    transpile: [/^element-ui/]
  },

  styleResources: {
    less: ["@assets/css/public.less"]
  },
  env: {
    NODE_ENV: process.env.NODE_ENV
  }
};
